package com.example.administrator.yuejian35.Home.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by JUSTIN on 2017/9/25.
 */

public class Activity implements Parcelable {

    /**
     * aid : 1
     * aname : 长跑活动
     * content : 全民运动，增强大家的健身意识，锻炼身体的同时磨练意志，促进交流，增强友谊，展现当代大学生的青春与激情
     * notes : 保管好个人物品，注意身体极限
     * collect : 216
     * address : 东软三期
     * amoney : 120
     * smoney : 60
     * time : 2017-08-09
     * pic : 1504444350_1550164401.jpg
     * tel : 16655538976
     * date : 2017-08-22
     * psum : 27
     * msum : 2190
     */

    private String aid;
    private String aname;
    private String content;
    private String notes;
    private String collect;
    private String address;
    private String amoney;
    private String smoney;
    private String time;
    private String pic;
    private String tel;
    private String date;
    private int psum;
    private int msum;

    protected Activity(Parcel in) {
        aid = in.readString();
        aname = in.readString();
        content = in.readString();
        notes = in.readString();
        collect = in.readString();
        address = in.readString();
        amoney = in.readString();
        smoney = in.readString();
        time = in.readString();
        pic = in.readString();
        tel = in.readString();
        date = in.readString();
        psum = in.readInt();
        msum = in.readInt();
    }

    public static final Creator<Activity> CREATOR = new Creator<Activity>() {
        @Override
        public Activity createFromParcel(Parcel in) {
            return new Activity(in);
        }

        @Override
        public Activity[] newArray(int size) {
            return new Activity[size];
        }
    };

    public void setAid(String aid) {
        this.aid = aid;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public void setCollect(String collect) {
        this.collect = collect;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setAmoney(String amoney) {
        this.amoney = amoney;
    }

    public void setSmoney(String smoney) {
        this.smoney = smoney;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setPsum(int psum) {
        this.psum = psum;
    }

    public void setMsum(int msum) {
        this.msum = msum;
    }

    public String getAid() {
        return aid;
    }

    public String getAname() {
        return aname;
    }

    public String getContent() {
        return content;
    }

    public String getNotes() {
        return notes;
    }

    public String getCollect() {
        return collect;
    }

    public String getAddress() {
        return address;
    }

    public String getAmoney() {
        return amoney;
    }

    public String getSmoney() {
        return smoney;
    }

    public String getTime() {
        return time;
    }

    public String getPic() {
        return pic;
    }

    public String getTel() {
        return tel;
    }

    public String getDate() {
        return date;
    }

    public int getPsum() {
        return psum;
    }

    public int getMsum() {
        return msum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(aid);
        dest.writeString(aname);
        dest.writeString(content);
        dest.writeString(notes);
        dest.writeString(collect);
        dest.writeString(address);
        dest.writeString(amoney);
        dest.writeString(smoney);
        dest.writeString(time);
        dest.writeString(pic);
        dest.writeString(tel);
        dest.writeString(date);
        dest.writeInt(psum);
        dest.writeInt(msum);
    }
}
